package top.bug.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import top.bug.blog.entity.dto.common.BatchRequest;
import top.bug.blog.entity.dto.common.OrderModRequest;
import top.bug.blog.entity.dto.links.LinksAddRequest;
import top.bug.blog.entity.dto.links.LinksQueryRequest;
import top.bug.blog.entity.dto.links.LinksUpdateRequest;
import top.bug.blog.entity.po.Links;

/**
 * @author <a href="https://github.com/jiusi66">九思.</a>
 * @email 10837907@qq.com
 * @from <a href="https://www.52bug.top">递归茶馆-www.52bug.top</a>
 * @description 友链 接口
 */
public interface LinksService extends IService<Links> {

    /**
     * 获取友链列表
     */
    Page<Links> getList(LinksQueryRequest queryRequest);

    /**
     * 添加友链
     */
    Boolean add(LinksAddRequest addRequest);

    /**
     * 修改友链
     */
    Boolean edit(LinksUpdateRequest updateRequest);

    /**
     * 删除友链
     */
    Boolean delete(BatchRequest batchRequest);

    /**
     * 修改友链排序
     */
    Boolean editOrder(OrderModRequest orderModRequest);
}